Conversation
added 2 commits
April 13, 2026 21:47
Some runs left dirty sandbox branches with no clear reason in the console, which felt like Codex skipped commit/PR steps. The codex-agent auto-commit path now prints real git hook/commit errors and attempts a sync+retry when the branch is behind origin/base. New coverage validates successful completion when base advances during task execution and validates actionable failure output when commit hooks block commits.\n\nConstraint: Keep auto-finish behavior non-destructive and preserve sandbox state on unresolved failures\nRejected: Force --no-verify commits on auto-finish failure | would bypass guardrails and hide real policy issues\nConfidence: high\nScope-risk: narrow\nReversibility: clean\nDirective: If adding new auto-retry paths, keep the final failure output explicit so users can recover manually\nTested: npm test; npm pack --dry-run\nNot-tested: Live Codex CLI failure modes with network-flaky gh auth
7eaa0b2 to
3142c77
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary\n- codex-agent now prints underlying git commit errors instead of hiding them\n- codex-agent attempts a sync+retry when auto-commit sees branch-behind conditions\n- add regression tests for base-advance resilience and actionable hook-failure output\n\n## Verification\n- npm test\n- npm pack --dry-run